# The authors focus on the overall effect, but also conduct analyses in subsets
# of studies. Since they focus on the overall and find only small differences in
# subsets, we only consider the overall.

source(here::here("code/load.R"))

here("data/meta_analyses_raw/SchCop2021/sate_estimates.rds") |>
    readRDS() |>
    mutate(meta_id = "SchCop2021",
           question = "What is the effect of candidate gender on vote choice?",
           subfield = "CP") |>
    select(meta_id,
           question,
           subfield,
           study_id = study_name,
           study_year = year,
           sample_size = n_subjects,
           estimate,
           std.error) |>
    write_csv(here("data/meta_analyses_clean/SchCop2021.csv"))
